<?php require_once('libs/conexion.php');
$cn=  Conectarse();
$listado=  mysql_query("select * from lmp_cliente",$cn);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

<link href="estilos/style.css" rel="stylesheet" type="text/css"/>
<link href="estilos/demo_table.css" rel="stylesheet" type="text/css"/>
<link href="estilos/styles.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="estilos/shadowbox/shadowbox.css">
<script type="text/javascript" src="scripts/shadowbox/shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({
	language:   "es",
	modal: true,
	players:    ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv']
	});
</script>
<script type="text/javascript" language="javascript" src="scripts/funciones.js"></script>
<script type="text/javascript" language="javascript" src="scripts/jslistadopaises.js"></script>
<script type="text/javascript" language="javascript" src="scripts/jquery.dataTables.js"></script>

<title>.::LIMEXPO ::.</title>
<style type="text/css">
<!--
.style4 {color: #ff0000}
-->
</style>

</head>

<body>
<table width="793" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="21" colspan="4" align="right" valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td width="22" height="46" align="right" valign="top" background="images/e_izquierda.png">&nbsp;</td>
    <td colspan="2" align="left" valign="bottom" bgcolor="#3a7da1" class="txtSubitulosBlanco style1"><img src="images/cliente.png" alt="1" width="40" height="40" align="left" /><span class="TitleBlanco"> <br />
      Consulta de Clientes</span></td>
    <td width="22" align="left" valign="middle"><img src="images/e_derechapng.png" alt="2" width="22" height="46" /></td>
  </tr>
  <tr>
    <td height="180" background="images/e_r_izquierda.png">&nbsp;</td>
    <td colspan="2" background="images/1_03.png"><form name="form_cliente" id="form_cliente" method="post">
      <table width="615" border="0" align="center" cellpadding="0" cellspacing="0"  class="none">
        <!--DWLayoutTable-->
        <tr>
          <td height="6" align="right" valign="middle" class="textoazul10"></td>
        </tr>
        <tr>
          <td align="left" valign="middle"  class="noLinksCarr"><table width="733" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="161">&nbsp;</td>
              <td width="164">&nbsp;</td>
              <td width="101">&nbsp;</td>
              <td colspan="4">&nbsp;</td>
            </tr>
            <tr>
              <td><span class="textCalidadLink">Criterio de Busqueda:</span></td>
              <td><select name="cmbPaises" class="textazul" id="cmbPaises">
                  <option value="0">Seleccione el Criterio</option>
                  <option>Pais</option>
                  <option>Codigo Cliente</option>
                  <option>Cliente</option>
                  <option>Identificacion</option>
                                                                </select></td>
              <td>&nbsp;</td>
              <td width="176"><label></label></td>
              <td width="57"><label></label></td>
              <td width="36"><label></label></td>
              <td width="38">
              <a rel="shadowbox;width=718;height=378" title="" href="webpages/lmp_cliente.php" class="nolinks">
						
              <input  name="btn_agregar" id="btn_agregar" type="image" src="images/agregar.png" alt="AGREGAR" title="AGREGAR"/></a></td>
            </tr>
            <tr>
              <td colspan="7">&nbsp;</td>
              </tr>
            <tr>
              <td colspan="7">
              <table cellpadding="0" cellspacing="0" border="0" class="display" id="tabla_lista_paises">
                <thead>
                    <tr>
                        <th><img src="images/elimar_registro.png" alt="2" width="10" height="10" title="Eliminar todos los regitros" /></th>
                       <th><img src="images/modificar_registro.png" alt="2" width="10" height="10" title="Modificar" /></th>
                        <th>Codigo</th><!--Estado-->
                        <th>Cliente</th>
                        <th>Tipo de Persona</th>
                        <th>Tipo de Identificacion</th>
                        <th>Identificacion</th>
                        <th>Pais</th> 
                        <th>Ciudad</th>                       
                    </tr>
                </thead>
                <tfoot>
                    <tr>
                        <th></th>
                        <th></th>
                    </tr>
                </tfoot>
                  <tbody>
                    <?php

     
                   while($reg=  mysql_fetch_array($listado))
                   {
                               echo '<tr>';
                              // echo '<td >'.mb_convert_encoding($reg['cli_codigo'], "UTF-8").'</td>';
							    ?>
                                <td><img src="images/elimar_registro.png" alt="2" width="10" height="10" title="Eliminar" /></td>                                 <td><img src="images/modificar_registro.png" alt="2" width="10" height="10" title="Modificar" /></td>
                                <td><?php echo($reg['cli_codigo']);?></td>
                                <?php
                               echo '<td>'.mb_convert_encoding($reg['cli_nombre'], "UTF-8").'</td>';
							   echo '<td>'.mb_convert_encoding($reg['cli_tipo_cliente'], "UTF-8").'</td>';
							   echo '<td>'.mb_convert_encoding($reg['cli_tipo_identificacion'], "UTF-8").'</td>';
							   echo '<td>'.mb_convert_encoding($reg['cli_identificacion'], "UTF-8").'</td>';
							   echo '<td>'.mb_convert_encoding($reg['cli_pais'], "UTF-8").'</td>';
							   echo '<td>'.mb_convert_encoding($reg['cli_ciudad'], "UTF-8").'</td>';
                               echo '</tr>';
                     
                        }
                    ?>
                <tbody>
            </table></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td align="left" valign="middle" class="textazul"><!--DWLayoutEmptyCell-->&nbsp;</td>
          </tr>
      </table>
    </form></td>
    <td align="right" valign="top" background="images/e_r_derecha1.png">&nbsp;</td>
  </tr>
  <tr>
    <td height="20" align="right" valign="top"><img src="images/e_infrerior_izquierda.png" alt="4" width="22" height="19" /></td>
    <td height="20" colspan="2" align="left" valign="top" background="images/e_inferior.png" ></td>
    <td align="left" valign="top"><img src="images/e_inferior_derecha.png" alt="3" width="22" height="19" /></td>
  </tr>
</table>
</body>
</html>
